vagrant_guide
$ vagrant Init
(2) Add a base Box:
Instead of creating a virtual machine from scratch, vagrant imports the base image of a virtual machine and builds on it. These image is called box.
Vagrant support for adding boxes from local file system or HTTP URL
$vagrant
routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed”
If the CA certificate is missing during installation, download cacert. pem to the custom path.Http://curl.haxx.se/docs/caextract.html
Then modify the php. ini file (about 1983 lines)
Openssl. cafile = D: \ php \ verify \ cacert. pem
3. test Composer
composer -VComposer version 1.0-dev (d79427f1a7b15e8f4d46ce8124a4d0c58ba1479c) 2015-07-04 11:22:58Install Vagrant
1. download
1.1 Project Initialization
Vagrant uses the vagrant file as the configuration file, which defines the root directory of the project, and many of the vagrant configurations are based on the root directory of this configuration, and it also describes the type of machine and other resources (such as what software is installed) that the project will run on.To initia
Original: http://blog.csdn.net/hel12he/article/details/51107236The basic knowledge of vagrant has already been basically over once, I believe as long as the tutorial, you have set up your own basic environment. Let's talk about how to build a PHP7 development environment.
To be clear, the box used here is the centos7 of the previous demo.Address:Https://github.com/tommy-muehle/puppet-vagrant-
Read Catalogue
Start Nginx and set to boot
Installing Iptables
Edit the firewall configuration file
Configure Nginx to access PHP
Test access
Security Configuration for MARIADB
Make the extranet available for linking
Global Installation composer
Original: http://blog.csdn.net/hel12he/article/details/51107236The basic knowledge of vagrant has already been basically over once, I believe as long as the tutorial,
--versionVagrant 1. 8. 1 DownloadInstalling the Homestead Vagrant boxby commandAfter the Virtualbox/vmware and Vagrant have been installed, the following commands can be added to the Vagrant in the terminal laravel/homesterad . Downloading the box will take some time, depending on the speed of your network connection:Vagrant Box Add Laravel/homesteadIf the above
Vagrant.
Vagrant also supports the use of Chef and Puppet to maintain your virtual development environment. However, I am not familiar with these two tools and will not introduce them in this article, this section describes how to configure a Vagrant environment in Windows.Install Vagrant
Download the latest
to extend the basic functionality, and even you can develop your own plugins according to their specifications to meet specific requirements.
Let's take a few examples to illustrate the use of vagrant.Please download, install VirtualBox and vagrant first. Because Vagrant is developed in Ruby, you also download and install Ruby. Whether your machine is a Windows, Mac, or a variety of Linux distribution
The basic knowledge of vagrant has already been basically over once, I believe as long as the tutorial, you have set up your own basic environment. Let's talk about how to build a PHP7 development environment.
To be clear, the box used here is the centos7 of the previous demo.Address:Https://github.com/tommy-muehle/puppet-vagrant-boxes/releases/download/
Vagrant Series Tutorial (iii): Vagrant built PHP7 Environment
The basic knowledge of vagrant has already been basically over once, I believe as long as the tutorial, you have set up your own basic environment. Let's talk about how to build a PHP7 development environment.
To be clear, the box used here is the centos7 of the previous demo.Address:Https://git
in the host machine and synchronize it to the client conveniently. During program debugging, this is a very good character. In addition, there are some other features, such as automated application deployment, which need to be explored by ourselves.Install and install virtualbox
OmittedInstall vagrant
Download and install it from the official website.Initialize and create a working directory
This working directory is used to store Virtual Machine con
environment, but because I am not familiar with these two tools, this article does not introduce, only briefly describes if you configure a Vagrant environment under Windows.Installing VagrantAfter downloading the latest Vagrant and corresponding VirtualBox installation from Vagrant website, create a new folder to configure the VagrantBecause using the
Fault
Vagrant managed CentOS Virtual machines update the system and kernel after yum-y update
And then the next time vagrant up, the shared directory cannot be mounted to the/vagrant directory (/sbin/mount.vboxsf:mounting failed with the Error:no such)
More information
Failed to mount folders in Linux Guest. This is usually becauseThe "vboxsf" file system is
Vagrant box with? Packer?and want to share it with the world on Vagrant Cloud, but do you ' re not sure what to go about sharing the box file? The? publish ? Subcommand helps you through the process of creating and uploading a new box entry on Vagrant Cloud with a single command. Once invoked, it'll confirm the new box details before publishing to
Reference HTTPS://PHPHUB.ORG/TOPICS/2According to the above prompt configuration, the error in running vagrant up is as follows:
Administrator@LUHSQLSY0HHQ5J6 MINGW32 /e/home/vagrant/mytwitter$ vagrant upA Vagrant environment or target machine is required to run thiscommand.Run `
Last Login:sat Jan 14:35:58 on consoleduncandemini:~ duncan$ CD hhexo.rar homestead/duncandemini:~ duncan$ CD Homes Tead/duncandemini:homestead duncan$ vagrant upbringing machine ' default ' up with ' VirtualBox ' provider...==> default: Box ' Laravel/homestead ' could not being found. Attempting to find and install ... default:box provider:virtualbox default:box Version: >= 0.4.0==> Default: Loading metadata for box ' Laravel/homestead ' default:url
/laravel/boxes/homesteadInstall Homestead
You can install Homestead by manually copying the resource library. Copy the resource library to your "home" DirectoryHomesteadAs a result, the Homestead package will provide host services to all your Laravel (and PHP) applications:
git clone https://github.com/laravel/homestead.git Homestead
Once you have cloned the Homestead repository, runbash init.shCommand to createHomestead.yamlConfiguration file:
bash i
development environmentThis is the basis of the installation, the following is to modify the configuration file Vagrantfile. The file is modified as follows:
#-*-Mode:ruby-*-# vi:set Ft=ruby: # All vagrant configuration are done below. The "2" in Vagrant.configure # configures the configuration version (we support older styles for # backwards compatibility ).
Please don ' t change it unless your know what # you ' re doing.
Vagrant.configure ("2") d
An accidental error occurred:Failed to mount folders in Linux Guest. This is usually becausethe "vboxsf" file system was not available. Please verify thatthe guest Additions is properly installed in the guest andcan work properly. The command attempted was:mount-t vboxsf-o uid= ' id-u vagrant ', gid= ' getent Group vagrant | cut-d:-f3 ' vagrant/vagrantmount-t vbo
/vagrant_2.0.1_x86_64.msi③centos-6.6-x86_64.box Specific AddressHttps://github.com/tommy-muehle/puppet-vagrant-boxes/releases/download/1.0.0/centos-6.6-x86_64.box2. Configure the path of the VirtualBox to the Advanced environment variableD:\Program files\oracle\virtualbox\Run VBoxManage.exe directly via CMD to start the VirtualBox virtual machine program3. Download Centos-6.6-x86_64.box into the D:/data dir
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.